import request from '@/utils/request'
export function updateCommment(data) {
    return request({
        url: "/comments",
        method: "PUT",
        data
    })
}
export function deleteCommment(id) {
    return request({
        url: "/comments",
        method: "delete",
        params: {
            'id': id
        }
    })
}
export function addComment(id, data) {
    return request({
        url: "/comments",
        method: "post",
        params: {
            'aid': id,
        },
        data
    })
}
export function getArticleToComment(id) {
    return request({
        url: "/getArticleToComment",
        method: "get",
        params: {
            'id': id
        }
    })
}